﻿@model DevWeb.Biztalk.DeploymentSettings.WebUI.Models.TargetEnvironmentViewModel

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm("Create", "TargetEnvironment", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.ValidationSummary(true)

    <div class="">
        <fieldset>
            <legend>Create new TargetEnvironment</legend>

            <div class="form-group">
                @Html.LabelFor(model => model.Name, new { @class = "col-md-2 control-label" })
                <div class="col-md-20">
                    @Html.TextBoxFor(model => model.Name, new { @class = "form-control", @placeholder = "Name of the new environment" })
                    @Html.ValidationMessageFor(model => model.Name)

                </div>
            </div>


            <div class="form-group">
                @Html.LabelFor(model => model.Description, new { @class = "col-md-2 control-label" })
                <div class="col-md-20">
                    @Html.TextAreaFor(model => model.Description, new { @class = "form-control", @placeholder = "Description of the new environment", @rows = 5 })
                    @Html.ValidationMessageFor(model => model.Description)

                </div>
            </div>

           @Html.HiddenFor(model => model.CreateDateTime)

            
            <p>
                <button type="submit" class="btn btn-primary">Create new Environment</button>

            </p>
        </fieldset>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
